/*
 * Program demonstrates how short-circuit
 * AND prevents a divide-by-zero error.
 *
 * Written by John Johann Kim
 * on Mon Jan  6 12:17:56 PST 2014
 */
class SCAnd { 
    public static void main(String args[]) {
        int i, j;

        i = 10;
        j = 0;

        if((j != 0) && (i % j) == 0) // entire block false
            System.out.println("i / j: " + i / j);
        
    System.out.println("The evaluation of " + i + " / " + j +
                    " is not possible.");
    }
}
